<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php __('Sistema de Gestión de Obras de Artes Viales'); ?>
            <?php echo $title_for_layout; ?>
        </title>
        <?php
            echo $this->Html->meta('icon');

            echo $this->Html->css('960');
            echo $this->Html->css('reset');
            echo $this->Html->css('text');

            echo $this->Html->css('cake.generic');

            echo $this->Javascript->link('/js/jquery-1.4.4.min.js');
            echo $this->Javascript->link('/js/jquery-ui-1.8.6.custom/js/jquery-ui-1.8.6.custom.min.js');
            echo $this->Javascript->link('/js/jquery-ui-1.8.6.custom/js/ui.datepicker-es.js');
            echo $this->Html->css('/js/jquery-ui-1.8.6.custom/css/ui-lightness/jquery-ui-1.8.6.custom');

            echo $this->Html->css('/js/jDownload/jquery.jDownload');
            echo $this->Javascript->link('/js/jDownload/jquery.jDownload.js');


            echo $scripts_for_layout;
        ?>
        </head>
        <body>
            <div id="container">
                <div id="header">
                    <h1><?php echo $this->Html->link(__('Sistema de Gestión de Obras de Artes Viales', true), 'http://proyecto.sgoav/'); ?></h1>
                    <div id="menu">
                        <ul>
                            <li><?php echo $this->Html->link(__('Mapa', true), array('controller' => 'obras', 'action' => 'admin_mapa')); ?></li>
                            <li><?php echo $this->Html->link(__('Obras', true), array('controller' => 'obras', 'action' => 'admin_view_obras')); ?>
                                <ul>
                                    <li>
                                    <?php echo $this->Html->link(__('Crear Obra', true), array('controller' => 'obras', 'action' => 'admin_add_obra')); ?>
                                </li>
                            </ul>
                        </li>
                        <li><?php echo $this->Html->link(__('Evaluaciones', true), array('controller' => 'evaluaciones', 'action' => 'admin_view_obras')); ?>
                            <ul>
                                <li>
                                    <?php echo $this->Html->link(__('Tipos de Evaluaciones', true), array('controller' => 'evaluaciones_tipos', 'action' => 'admin_index')); ?>
                                </li>
                            </ul>
                        </li>
                        <li><?php echo $this->Html->link(__('Intervenciones', true), array('controller' => 'intervenciones', 'action' => 'admin_view_obras')); ?>
                            <ul>
                                <li>
                                    <?php echo $this->Html->link(__('Tipos de Intervenciones', true), array('controller' => 'intervenciones_tipos', 'action' => 'admin_index')); ?>
                                </li>
                            </ul>
                        </li>
                        <li><?php echo $this->Html->link(__('Usuarios', true), array('controller' => 'users', 'action' => 'admin_index')); ?>
                            <ul>
                                <li>
                                    <?php echo $this->Html->link(__('Crear Usuario', true), array('controller' => 'users', 'action' => 'admin_add')); ?>
                                </li>
                            </ul>
                        </li>
                        <li><?php echo $this->Html->link(__('Configuración', true), array('controller' => 'obras', 'action' => 'admin_configuracion')); ?>
<!--                            <ul>
                                <li>
                                    <?php echo $this->Html->link(__('Localidad ABM', true), array('controller' => 'localidades', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Departamento ABM', true), array('controller' => 'departamentos', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Provincia ABM', true), array('controller' => 'provincias', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Ruta ABM', true), array('controller' => 'rutas', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Tipos de Ruta ABM', true), array('controller' => 'rutas_tipos', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Tipologías Viales ABM', true), array('controller' => 'tipologias_viales', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Zonas ABM', true), array('controller' => 'zonas', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Tipos de Zona ABM', true), array('controller' => 'zonas_tipos', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Obstáculo ABM', true), array('controller' => 'obstaculos', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Tipos de Obstáculo ABM', true), array('controller' => 'obstaculos_tipos', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Elementos de Superestructura ABM', true), array('controller' => 'menues_superestructuras', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Elementos de Infraestructura ABM', true), array('controller' => 'menues_infraestructuras', 'action' => 'admin_index')); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link(__('Elementos de Señalización ABM', true), array('controller' => 'menues_senializaciones', 'action' => 'admin_index')); ?>
                                </li>
                            </ul>-->
                        </li>
                        <li><?php echo $this->Html->link(__('Cerrar Sesión', true), array('controller' => 'users', 'action' => 'admin_logout')); ?></li>
                    </ul>
                </div>
            </div>

            <div id="content">

                <?php echo $session->flash(); ?>
                <?php echo $session->flash('auth'); ?>
                <?php echo $content_for_layout; ?>

                                </div>
                                <div id="footer">
                <?php
                                    echo $this->Html->link(
                                            $this->Html->image('cake.power.gif', array('alt' => __('CakePHP: the rapid development php framework', true), 'border' => '0')),
                                            'http://www.cakephp.org/',
                                            array('target' => '_blank', 'escape' => false)
                                    );
                ?>
                                </div>
                            </div>
        <?php //echo $this->element('sql_dump'); ?>
    </body>
</html>